<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ include file="/page/share/taglib.jsp"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<head>
		<base href="<%=basePath%>">

		<title>主页</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">


	</head>
	<body>
        <security:authentication property="name" />
		welcome!~<br/>
        <security:authentication property="authorities" var="authorities" />
        <ul>
            <c:forEach items="${authorities}" var="authority">
                <li>${authority.authority}</li>
            </c:forEach>
        </ul>
        <a href="${pageContext.request.contextPath}/page/login/admin.jsp">admin</a><br/>
        <a href="${pageContext.request.contextPath}/page/login/guest.jsp">guest</a><br/>
        <a href="${pageContext.request.contextPath}/j_spring_security_logout">Logout</a>
	</body>
</html>
